package state.improve.states;

import state.improve.AbstractState;
import state.improve.ElevatorManager;

public class OpenState extends AbstractState {
    private ElevatorManager elevatorManager;

    public OpenState(ElevatorManager elevatorManager) {
        this.elevatorManager = elevatorManager;
    }

    @Override
    public void close() {
        System.out.println("关闭电梯");
        elevatorManager.setState(elevatorManager.getCloseState());
    }
}
